/*
-------------------------------------------------------------------
BIE is Copyright 2001-2004 Brunswick Corp.
-------------------------------------------------------------------
Please read the legal notices (docs/legal.txt) and the license
(docs/bie_license.txt) that came with this distribution before using
this software.
-------------------------------------------------------------------

*/
/*
 * Persistent.java
 *
 * Created on January 21, 2003, 10:18 AM
 */

package com.webdeninteractive.bie.persistent.privileges;

import java.sql.*;
import java.util.*;
import com.webdeninteractive.bie.persistent.*;

/**
 *
 * @author  jd
 */
public class Persistent {
    
    Connection conn = null;
    Statement s = null;
    ResultSet rs = null;
    
    /** Creates a new instance of Persistent */
    public Persistent() {
    }
    /*
    protected void execute(String sql) throws SQLException{
        if (conn == null) {
            conn = DataSourceFactory.getConnection();
            s = conn.createStatement();
        }
        s.execute(sql);
    }
    
    protected ResultSet executeQuery(String sql) throws SQLException{
        if (conn == null) {
            conn = DataSourceFactory.getConnection();
            s = conn.createStatement();
        }
        return s.executeQuery(sql);
    }
    
    protected void close() {
        if (rs != null) rs.close();
        if (s != null) s.close();
        if (conn != null) conn.close();
    }
    
    protected void commit() {
        conn.commit();
    }
    
    protected void rollback() {
        conn.rollback();
    }
      */  
}